<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'userRegister.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	用户注册
	<br>
	<form action='${pageContext.request.contextPath}/user/addUser.action' method='post'>
		用户名：<input type='text' name='userName' /> <br /> 
		密码：<input type='password' name='userPassword' /> <br /> 
		性别：<input type='radio' name='userSex' value='男' /> 男 
		<input type='radio' name='userSex' value='女' /> 女<br /> 
		
		 <!-- 所在城市：<select name='city'>
		 <option value='北京'>北京</option>
		<option value='广州'>广州</option>
		</select> <br />  -->
		省份：<input type='text' name='userProvince' /> <br />
		城市：<input type='text' name='userCity' /> <br />
		手机：<input type='text' name='userPhone' /> <br />
		邮箱：<input type='text' name='userEmail' /> <br /> 
		qq：<input type='text' name='userQq' /> <br /> 
		<!--  <label style='vertical-align:top'>请输入介绍：</label> 
		<textarea cols='20' rows='20' name='intro'></textarea><br /> 
		提交照片：<input type='file' name='photo'><br /> 
		-->
		<input type='submit' value='提交信息' />
	</form>
</body>
</html>
